nice_things/storage/program_runtime_dir.sh
readonly:program_runtime_dir
Since 0.3.0 · Source
import "{ readonly:program_runtime_dir }" from nice_things/storage/program_runtime_dir.sh
Synopsis"${program_runtime_dir}"
Configuration
name=<program_name>
Description
The runtime directory for the current program. Will use the value of the user_runtime_dir variable, appending the package name as last pathname component. The directory is created on initialization.
Normally, this variable should not be used directly by user code. To create runtime files, use the create_runtime_file function instead.
Options
–
Operands
–
Stdin
–
Stdout
–
Stderrlog_error.
Exit status
0: Successful definition.13: Failed to create directory (on initialization) (abort).
Abort
Aborts if initialization fails.
Usage examples
# Print all runtime files created by the program
ls -A "$program_runtime_dir"